#ifndef SERVERSOCKET_H
#define SERVERSOCKET_H

#include <QWidget>
#include <QTcpSocket>

namespace Ui {
class ServerSocket;
}

class ServerSocket : public QWidget
{
    Q_OBJECT

public:
    explicit ServerSocket(QTcpSocket *socket, QWidget *parent = 0);
    ~ServerSocket();

private slots:
    void readyToRead(void);

    void on_pb_send_clicked();

    void on_toolButton_clicked();

private:
    Ui::ServerSocket *ui;

    quint16 m_tcpBlockSize;
    QTcpSocket *m_tcpSocket;
};

#endif // SERVERSOCKET_H
